package leetcode.code0223;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution223 implements IDebug {
	public abstract int computeArea(int ax1, int ay1, int ax2, int ay2, int bx1, int by1, int bx2, int by2);

	@Override
	public void debug1() {
		int ax1 = -3;
		int ay1 = 0;
		int ax2 = 3;
		int ay2 = 4;
		int bx1 = 0;
		int by1 = -1;
		int bx2 = 9;
		int by2 = 2;
		int e = 45;
		int r = this.computeArea(ax1, ay1, ax2, ay2, bx1, by1, bx2, by2);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		int ax1 = -2;
		int ay1 = -2;
		int ax2 = 2;
		int ay2 = 2;
		int bx1 = -2;
		int by1 = -2;
		int bx2 = 2;
		int by2 = 2;
		int e = 16;
		int r = this.computeArea(ax1, ay1, ax2, ay2, bx1, by1, bx2, by2);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
